#include <iostream>
#include "Indice.h"
#include "BloqueTexto.h"
using namespace std;


int main() {
	Indice *ind = new Indice();
	BloqueTexto *t = new BloqueTexto();
	char te[] = "hola hola hola";
	t->setTexto(te);
	Compresion *compr = new Compresion(2);
	compr->setContexto('A', 'B');
	compr = ind->generarCompresion(compr, *t);
	compr->setContexto('A', 'B');
	compr = ind->generarCompresion(compr, *t);
	char car1 = 'l';
	char car2 = ' ';
	int a =(int) car1;
	cout<<a<<" ";
	a = (int) car2;
	cout<<a<<" ";
	int aux = ind->obtenerPosContexto(car1,car2);
	cout<<aux<<" ";
	return 0;
}
